<?php /* Smarty version 2.6.26, created on 2018-07-20 02:31:52
         compiled from E:%5CWWW%5C40.125.208.171%5Cvweb/admin%5Ctemplates/index/login.html */ ?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理中心</title>
<link href="<?php echo $this->_tpl_vars['__APP__']; ?>
public/css/common.css" rel="stylesheet" type="text/css" /> 
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__PUBLIC__']; ?>
js/jquery.min.js"></script> 
<script type="text/javascript" src="<?php echo $this->_tpl_vars['__APP__']; ?>
public/js/common.js"></script>
<style type="text/css"> 
*{ font: 14px  "微软雅黑","宋体", Arial Narrow, Helvetica; }
a{ font: 14px  "微软雅黑","宋体", Arial Narrow, Helvetica; text-decoration:none; } 
body{ min-width:1400px; margin:0; height:100%; padding:0; background:#fff; margin:0; float:left; }

.top{ width:0 auto; background:#0781C6; border-bottom:1px solid #ccc; height:50px; } 
.top span{ width:190px; height:43px; text-align:center; font-size:22px; color:#fff; padding:10px 10px 0 0; float:left; } 
.top ul{ width:800px; float:left; } 
.top ul a{ height:29px; padding:16px 22px 5px; color:#f8f8f8; margin:0; float:left; font-size:15px; text-decoration:none; }  
.top ul a.top_ch{ color:#f8f8f8; background:#0577B7; } 
.top ul em{ font-weight:100; color:#6AAEBE; margin:17px 0 0 0; font-size:12px; float:left; }

.top h3{ margin:15px 15px 0 0; float:right; color:#FFFFFF; }
.top h3 a{ font-size:14px; color:#FFFFFF; float:left;}
.top h3 em{ font-weight:100; color:#666; margin:2px 10px 0 10px; font-size:12px; float:left;}

.left{ width:200px; top:50px; bottom:0; background:#ECEFF3; position:absolute; }
.left_box{ display:none; }

.ltop{ width:200px; padding:0; float:left;}
.ltop .title{ width:65px; height:100%; bottom:0; background:#353946; position: absolute; float:left;   }
.ltop .title a.lname{ width:65px; padding:15px 0; left:0; cursor:pointer; background:#353946; color:#1282B7; float:left; }
.ltop .title a.lname:first-child{ margin-top:1px; }
.ltop .title a.lname i.arrow{ width:60px; height:27px; float: left; }
.ltop .title a.lname span{ width:60px; color:#fff; text-align:center; padding:2px 0 0 0; float:left; }
.ltop .title a.ch{ background:#50576E; }

.titlecon{ float:left; }
.titlecon ul{ width:130px; position: absolute; top:1px; left:65px; display:none; float:left; } 

.titlecon ul li{ width:135px; padding:0 0; float:left; }
.titlecon ul li em{ width:10px; padding:8px 0 10px 0px; float:left;}
.titlecon ul li a{ width:115px; padding:10px 0 10px 20px; font-size:12px; color:#333; text-decoration:none; float:left;}
.titlecon ul li a.ch{ background:#fff; } 
.titlecon ul li a:before {content: '·'; font-size:14px; margin:0 6px 0 0; color:#333; }

/*右侧菜单*/
.right{ left:200px; width:auto; top:50px; bottom:0; right:0; position:absolute; } 
.login_main{ width:100%; min-width:1200px; left:0px; width:auto; top:0; bottom:0; right:0; padding:0; margin:0; position:absolute; }
.login_main iframe{ margin:0; padding:0; float:left; height:100%; width:100%; }
</style>
</head>
<body>
	<div class="top">
		<span><img src="<?php echo $this->_tpl_vars['__APP__']; ?>
public/images/admin_logo.png"></span>
		<ul>
			<?php $_from = $this->_tpl_vars['data_one']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['t']):
?> 
				<a href="javascript:;" parent-id="<?php echo $this->_tpl_vars['t']['id']; ?>
"<?php if ($this->_tpl_vars['k'] == 0): ?> class="top_ch"<?php else: ?><?php endif; ?>><?php echo $this->_tpl_vars['t']['name']; ?>
</a>
			<?php endforeach; endif; unset($_from); ?> 
			<?php if ($this->_tpl_vars['stock_status'] == '1'): ?>
				<a href="stock.php" target="_blank">进销存</a>
			<?php endif; ?>
		</ul>
		<h3>
			<a href="javascript:;" onClick="clear_cache()">清空缓冲</a><em>|</em>
			<a href="http://www.uqcms.com/" target="_blank">系统官方</a><em>|</em>
			<a href="?a=server" target="_blank">系统反馈</a><em>|</em>
			<a href="index.php" target="_blank">网站首页</a><em>|</em>
			<a href="?a=logout">退出登录</a>
		</h3>
	</div>
	<div class="left">
		<div class="ltop">
		<?php unset($this->_sections['m']);
$this->_sections['m']['name'] = 'm';
$this->_sections['m']['loop'] = is_array($_loop=$this->_tpl_vars['menu']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['m']['show'] = true;
$this->_sections['m']['max'] = $this->_sections['m']['loop'];
$this->_sections['m']['step'] = 1;
$this->_sections['m']['start'] = $this->_sections['m']['step'] > 0 ? 0 : $this->_sections['m']['loop']-1;
if ($this->_sections['m']['show']) {
    $this->_sections['m']['total'] = $this->_sections['m']['loop'];
    if ($this->_sections['m']['total'] == 0)
        $this->_sections['m']['show'] = false;
} else
    $this->_sections['m']['total'] = 0;
if ($this->_sections['m']['show']):

            for ($this->_sections['m']['index'] = $this->_sections['m']['start'], $this->_sections['m']['iteration'] = 1;
                 $this->_sections['m']['iteration'] <= $this->_sections['m']['total'];
                 $this->_sections['m']['index'] += $this->_sections['m']['step'], $this->_sections['m']['iteration']++):
$this->_sections['m']['rownum'] = $this->_sections['m']['iteration'];
$this->_sections['m']['index_prev'] = $this->_sections['m']['index'] - $this->_sections['m']['step'];
$this->_sections['m']['index_next'] = $this->_sections['m']['index'] + $this->_sections['m']['step'];
$this->_sections['m']['first']      = ($this->_sections['m']['iteration'] == 1);
$this->_sections['m']['last']       = ($this->_sections['m']['iteration'] == $this->_sections['m']['total']);
?>
			<div class="left_box" id="top_left_<?php echo $this->_tpl_vars['menu'][$this->_sections['m']['index']]['id']; ?>
"> 
				<div class="title">
					<?php unset($this->_sections['mm']);
$this->_sections['mm']['name'] = 'mm';
$this->_sections['mm']['loop'] = is_array($_loop=$this->_tpl_vars['menu'][$this->_sections['m']['index']]['p_menu']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['mm']['show'] = true;
$this->_sections['mm']['max'] = $this->_sections['mm']['loop'];
$this->_sections['mm']['step'] = 1;
$this->_sections['mm']['start'] = $this->_sections['mm']['step'] > 0 ? 0 : $this->_sections['mm']['loop']-1;
if ($this->_sections['mm']['show']) {
    $this->_sections['mm']['total'] = $this->_sections['mm']['loop'];
    if ($this->_sections['mm']['total'] == 0)
        $this->_sections['mm']['show'] = false;
} else
    $this->_sections['mm']['total'] = 0;
if ($this->_sections['mm']['show']):

            for ($this->_sections['mm']['index'] = $this->_sections['mm']['start'], $this->_sections['mm']['iteration'] = 1;
                 $this->_sections['mm']['iteration'] <= $this->_sections['mm']['total'];
                 $this->_sections['mm']['index'] += $this->_sections['mm']['step'], $this->_sections['mm']['iteration']++):
$this->_sections['mm']['rownum'] = $this->_sections['mm']['iteration'];
$this->_sections['mm']['index_prev'] = $this->_sections['mm']['index'] - $this->_sections['mm']['step'];
$this->_sections['mm']['index_next'] = $this->_sections['mm']['index'] + $this->_sections['mm']['step'];
$this->_sections['mm']['first']      = ($this->_sections['mm']['iteration'] == 1);
$this->_sections['mm']['last']       = ($this->_sections['mm']['iteration'] == $this->_sections['mm']['total']);
?>
						<a class="lname" href="javascript:;" data-id="<?php echo $this->_tpl_vars['menu'][$this->_sections['m']['index']]['p_menu'][$this->_sections['mm']['index']]['id']; ?>
">
							<i class="arrow" style="background:url(<?php echo $this->_tpl_vars['__APP__']; ?>
public/images/login/l_<?php echo $this->_tpl_vars['menu'][$this->_sections['m']['index']]['p_menu'][$this->_sections['mm']['index']]['id']; ?>
.png) no-repeat center top; background-size:22px;">&nbsp;</i>
							<span><?php echo $this->_tpl_vars['menu'][$this->_sections['m']['index']]['p_menu'][$this->_sections['mm']['index']]['name']; ?>
</span>
						</a> 
					<?php endfor; endif; ?> 
			  	</div>
				<div class="titlecon">
					<?php unset($this->_sections['mm']);
$this->_sections['mm']['name'] = 'mm';
$this->_sections['mm']['loop'] = is_array($_loop=$this->_tpl_vars['menu'][$this->_sections['m']['index']]['p_menu']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['mm']['show'] = true;
$this->_sections['mm']['max'] = $this->_sections['mm']['loop'];
$this->_sections['mm']['step'] = 1;
$this->_sections['mm']['start'] = $this->_sections['mm']['step'] > 0 ? 0 : $this->_sections['mm']['loop']-1;
if ($this->_sections['mm']['show']) {
    $this->_sections['mm']['total'] = $this->_sections['mm']['loop'];
    if ($this->_sections['mm']['total'] == 0)
        $this->_sections['mm']['show'] = false;
} else
    $this->_sections['mm']['total'] = 0;
if ($this->_sections['mm']['show']):

            for ($this->_sections['mm']['index'] = $this->_sections['mm']['start'], $this->_sections['mm']['iteration'] = 1;
                 $this->_sections['mm']['iteration'] <= $this->_sections['mm']['total'];
                 $this->_sections['mm']['index'] += $this->_sections['mm']['step'], $this->_sections['mm']['iteration']++):
$this->_sections['mm']['rownum'] = $this->_sections['mm']['iteration'];
$this->_sections['mm']['index_prev'] = $this->_sections['mm']['index'] - $this->_sections['mm']['step'];
$this->_sections['mm']['index_next'] = $this->_sections['mm']['index'] + $this->_sections['mm']['step'];
$this->_sections['mm']['first']      = ($this->_sections['mm']['iteration'] == 1);
$this->_sections['mm']['last']       = ($this->_sections['mm']['iteration'] == $this->_sections['mm']['total']);
?> 
						<ul class="in_<?php echo $this->_tpl_vars['menu'][$this->_sections['m']['index']]['p_menu'][$this->_sections['mm']['index']]['id']; ?>
">
							<?php unset($this->_sections['mmm']);
$this->_sections['mmm']['name'] = 'mmm';
$this->_sections['mmm']['loop'] = is_array($_loop=$this->_tpl_vars['menu'][$this->_sections['m']['index']]['p_menu'][$this->_sections['mm']['index']]['sp_menu']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['mmm']['show'] = true;
$this->_sections['mmm']['max'] = $this->_sections['mmm']['loop'];
$this->_sections['mmm']['step'] = 1;
$this->_sections['mmm']['start'] = $this->_sections['mmm']['step'] > 0 ? 0 : $this->_sections['mmm']['loop']-1;
if ($this->_sections['mmm']['show']) {
    $this->_sections['mmm']['total'] = $this->_sections['mmm']['loop'];
    if ($this->_sections['mmm']['total'] == 0)
        $this->_sections['mmm']['show'] = false;
} else
    $this->_sections['mmm']['total'] = 0;
if ($this->_sections['mmm']['show']):

            for ($this->_sections['mmm']['index'] = $this->_sections['mmm']['start'], $this->_sections['mmm']['iteration'] = 1;
                 $this->_sections['mmm']['iteration'] <= $this->_sections['mmm']['total'];
                 $this->_sections['mmm']['index'] += $this->_sections['mmm']['step'], $this->_sections['mmm']['iteration']++):
$this->_sections['mmm']['rownum'] = $this->_sections['mmm']['iteration'];
$this->_sections['mmm']['index_prev'] = $this->_sections['mmm']['index'] - $this->_sections['mmm']['step'];
$this->_sections['mmm']['index_next'] = $this->_sections['mmm']['index'] + $this->_sections['mmm']['step'];
$this->_sections['mmm']['first']      = ($this->_sections['mmm']['iteration'] == 1);
$this->_sections['mmm']['last']       = ($this->_sections['mmm']['iteration'] == $this->_sections['mmm']['total']);
?> 			
								<li><a href="javascript:;" url="?m=<?php echo $this->_tpl_vars['menu'][$this->_sections['m']['index']]['p_menu'][$this->_sections['mm']['index']]['sp_menu'][$this->_sections['mmm']['index']]['method']; ?>
&a=<?php echo $this->_tpl_vars['menu'][$this->_sections['m']['index']]['p_menu'][$this->_sections['mm']['index']]['sp_menu'][$this->_sections['mmm']['index']]['action']; ?>
" menu_id="<?php echo $this->_tpl_vars['menu'][$this->_sections['m']['index']]['p_menu'][$this->_sections['mm']['index']]['sp_menu'][$this->_sections['mmm']['index']]['id']; ?>
"><?php echo $this->_tpl_vars['menu'][$this->_sections['m']['index']]['p_menu'][$this->_sections['mm']['index']]['sp_menu'][$this->_sections['mmm']['index']]['name']; ?>
</a></li>
							<?php endfor; endif; ?>
						</ul>
					<?php endfor; endif; ?> 
				</div>
			</div>	
			<?php endfor; endif; ?>
		</div>
	</div> 
	<div class="right"> 
		<div class="login_main">
			<iframe name="content" id="content" src="?m=index&a=panel" frameborder="0" scrolling="auto"></iframe>
		</div>
	</div> 
	<div id="ajax_box"></div>
</body> 
</html>
<script type="text/javascript"> 
window.onload = function() {
	if (!window.applicationCache) {
		alert("你的浏览器不支持HTML5,请使用谷歌为内核的浏览器。");
	}
} 
$(function(){ 
	win_h = $(window).height(); 
	function change_window(){
		win_w = $(window).width();
		if(win_w < 1200){
			$('body').css('width',1200+'px'); 
		}else{
			$('body').css('width',100+'%'); 
		}
	}
	change_window();
	$(window).resize(function(){ 
		win_w = $(window).width(); 
		if(win_w < 1200){
			$('body').css('width',1200+'px');
		}else{
			$('body').css('width',100+'%'); 
		} 
	}); 
	$(".left_box:first").show();  
	//------------//
	$(".left_box .title a:first").addClass('ch');  
	//顶部操作
	$(".top ul a").click(function(){
		$this = $(this);
		$this.addClass("top_ch").siblings().removeClass("top_ch"); 
		
		top_id = $this.attr('parent-id'); 
		$("#top_left_"+top_id).show().siblings().hide(); 
		$("#top_left_"+top_id+" .titlecon ul").hide();
		$("#top_left_"+top_id+" .titlecon ul:eq(0)").show();
		$("#top_left_"+top_id+" .titlecon ul li a").removeClass('ch');
		$("#top_left_"+top_id+" .titlecon ul li:eq(0) a").addClass('ch'); 
		// 地址
		url = $("#top_left_"+top_id+" ul li:first a").attr('url'); 
		$("#content").attr('src',url);
		// 大标
		$("#top_left_"+top_id+" .title a").removeClass('ch');
		$("#top_left_"+top_id+" .title a:first").addClass('ch');
	}); 
	//左侧部分
	$(".left ul li a").click(function(){ 
		$this = $(this);
		url = $this.attr('url');
		$("#content").attr('src',url);
		$this.addClass('ch').parents('li').siblings().find('a').removeClass('ch'); 
	}); 
	// 左侧大标
	$(".left_box .title a.lname").click(function(){
		id = $(this).attr('data-id'); 
		$(this).siblings().removeClass('ch');
		$(this).addClass("ch");
		
		$(".titlecon ul.in_"+id).show().siblings().hide();
		$(".titlecon ul.in_"+id+" li a").removeClass('ch');
		$(".titlecon ul.in_"+id+" li:eq(0) a").addClass('ch');  
		 
		url = $(".titlecon ul.in_"+id+" li:eq(0) a").attr('url');
		$("#content").attr('src',url); 
	}); 
	// 让第一个显示
	$(".left_box").each(function(){
		$(this).find('.titlecon ul').eq(0).show();
		$(this).find('.titlecon ul').eq(0).find('li a:eq(0)').addClass('ch').show(); 
	}); 
	
});
function clear_cache(){
	$.get("?m=config&a=temp_clear&path=all&jq_time="+new Date().getTime(), function(result){
		data = jQuery.parseJSON(result);
		if(data.error == '0'){
			$.alert('清空成功');
		}else{
			$.alert(data.msg);
		}
	});
}
</script>